package grobit.wire

interface SocketFactory {
    Socket getConnectedSocket(InetSocketAddress socketAddress);
}

class DefaultSocketFactory implements SocketFactory {
    Socket getConnectedSocket(InetSocketAddress socketAddress) {
        return new Socket(socketAddress.address, socketAddress.port)
    }
}
